# -*- coding: utf-8 -*-

from google.appengine.api.namespace_manager import set_namespace
from dicthash.for_testing import TestGoogleDataStore

import lenta.code.backends.working.models as models


class TestWithSessionUser(TestGoogleDataStore):
    """ """
    def setUp(self):
        super(TestWithSessionUser, self).setUp()
        self.namespace = "testusername"
        set_namespace(self.namespace)
        
    def tearDown(self):
        super(TestWithSessionUser, self).tearDown()
        set_namespace("")
        
        
class TestParentLentaBase(TestWithSessionUser):
    """ """
    def setUp(self):
        super(TestParentLentaBase, self).setUp()
        self.lenta_key = models.Lenta(name="foo", desc="boo").put()
